package com.lxg;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping
@EnableEurekaClient
public class DemoController {

    @RequestMapping(value = "/test")
    public String test(HttpServletRequest request) {
        return request.getHeader("fs");
    }
}
